#include "stdafx.h"
#include "CriticalSection.h"


CriticalSection::CriticalSection()
{
    InitializeCriticalSection(&critical_section_);
}


CriticalSection::~CriticalSection()
{
    DeleteCriticalSection(&critical_section_);
}

void CriticalSection::enter()
{
    EnterCriticalSection(&critical_section_);
}

void CriticalSection::leave()
{
    LeaveCriticalSection(&critical_section_);
}
